package com.xuelang.pipeline.artifact.client.common.util;

import cn.hutool.core.util.StrUtil;
import com.xuelang.pipeline.artifact.client.common.constant.ArtifactConstant;

/**
 * Maven工具类
 *
 * @author xiwen.zxg
 * @since 2024/7/16
 */
public final class MavenUtil {

    /**
     * 组合group和name
     *
     * @param group
     * @param name
     * @return
     */
    public static String joinGroupAndName(String group, String name) {
        return (StrUtil.isBlank(group) ? "" : (group + ArtifactConstant.SEPARATOR_COLON)) + name;
    }

}
